<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>aiengine: xsock_clitest.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">aiengine
   </div>
   <div id="projectbrief">Vitis Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xsock__clitest_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">xsock_clitest.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<div class="textblock"><p>This file contains the entry point for the client socket connection test and other tests for sample startup.py. </p>
<pre>
MODIFICATION HISTORY:</pre><pre>Ver   Who     Date     Changes
</p>
<hr/>
<p>
1.0  Naresh  04/06/2018  Initial creation
1.1  Naresh  04/10/2018  Added call to API XAieSim_Init
1.2  Naresh  04/10/2018  Added macro call for XAIESIM_DEVCFG_SET_CONFIG
1.3  Naresh  04/18/2018  Added API call for XAieTile_DmWriteWord
1.4  Naresh  05/23/2018  Updated code to fix CR#999693
1.5  Naresh  06/13/2018  Fixed CR#1003905
1.6  Naresh  07/11/2018  Updated copyright info
1.7  Nishad  12/05/2018  Renamed ME attributes to AIE
</pre> </div><table class="memberdecls">
<tr class="memitem:af7ec442f30cb2733a1526466d78a1910"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsock__clitest_8c.html#af7ec442f30cb2733a1526466d78a1910">XAIE_BUFLEN</a>&#160;&#160;&#160;256</td></tr>
<tr class="memdesc:af7ec442f30cb2733a1526466d78a1910"><td class="mdescLeft">&#160;</td><td class="mdescRight">Buffer length for socket communication.  <a href="#af7ec442f30cb2733a1526466d78a1910">More...</a><br/></td></tr>
<tr class="separator:af7ec442f30cb2733a1526466d78a1910"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c6154bc224b92077850a4dc1a0f4bc8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_x_sock_cli.html">XSockCli</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsock__clitest_8c.html#a6c6154bc224b92077850a4dc1a0f4bc8">SockCli</a></td></tr>
<tr class="memdesc:a6c6154bc224b92077850a4dc1a0f4bc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Client socket instance.  <a href="#a6c6154bc224b92077850a4dc1a0f4bc8">More...</a><br/></td></tr>
<tr class="separator:a6c6154bc224b92077850a4dc1a0f4bc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3e8ae4158965dbf14d949a7e21de151"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_x_aie_gbl___config.html">XAieGbl_Config</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsock__clitest_8c.html#ab3e8ae4158965dbf14d949a7e21de151">MeConfigPtr</a></td></tr>
<tr class="memdesc:ab3e8ae4158965dbf14d949a7e21de151"><td class="mdescLeft">&#160;</td><td class="mdescRight">AIE configuration pointer.  <a href="#ab3e8ae4158965dbf14d949a7e21de151">More...</a><br/></td></tr>
<tr class="separator:ab3e8ae4158965dbf14d949a7e21de151"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3754b08922a585b4bcd81a340739b626"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_x_aie_gbl.html">XAieGbl</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsock__clitest_8c.html#a3754b08922a585b4bcd81a340739b626">MeInst</a></td></tr>
<tr class="memdesc:a3754b08922a585b4bcd81a340739b626"><td class="mdescLeft">&#160;</td><td class="mdescRight">AIE global instance.  <a href="#a3754b08922a585b4bcd81a340739b626">More...</a><br/></td></tr>
<tr class="separator:a3754b08922a585b4bcd81a340739b626"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c155a415524c31bb0eb1291524f6a59"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsock__clitest_8c.html#a2c155a415524c31bb0eb1291524f6a59">TileInst</a> [XAIE_NUM_COLS][XAIE_NUM_ROWS+1]</td></tr>
<tr class="memdesc:a2c155a415524c31bb0eb1291524f6a59"><td class="mdescLeft">&#160;</td><td class="mdescRight">AIE HW configuration instance.  <a href="#a2c155a415524c31bb0eb1291524f6a59">More...</a><br/></td></tr>
<tr class="separator:a2c155a415524c31bb0eb1291524f6a59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ddf1224851353fc92bfbff6f499fa97"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsock__clitest_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr>
<tr class="memdesc:a0ddf1224851353fc92bfbff6f499fa97"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is the main entry point for the AIE RTS driver test.  <a href="#a0ddf1224851353fc92bfbff6f499fa97">More...</a><br/></td></tr>
<tr class="separator:a0ddf1224851353fc92bfbff6f499fa97"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="af7ec442f30cb2733a1526466d78a1910"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XAIE_BUFLEN&#160;&#160;&#160;256</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Buffer length for socket communication. </p>

<p>Referenced by <a class="el" href="xsock__clitest_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main()</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a0ddf1224851353fc92bfbff6f499fa97"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>argv</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This is the main entry point for the AIE RTS driver test. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">argc</td><td>: Number of command line arguments. </td></tr>
    <tr><td class="paramname">argv[0]</td><td>: File name. </td></tr>
    <tr><td class="paramname">argv[1]</td><td>: Host name for the socket connection. </td></tr>
    <tr><td class="paramname">argv[2]</td><td>: Port number for the socket connection. </td></tr>
    <tr><td class="paramname">argv[3]</td><td>: Path to the ELF file.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>XAIE_SUCCESS on success, else XAIE_FAILURE.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>None. </dd></dl>

<p>References <a class="el" href="struct_x_aie_dma___tile.html#a8c67e71e0ea95e6d62a185708e98d467">XAieDma_Tile::IsReady</a>, <a class="el" href="struct_x_aie_gbl___hw_cfg.html#ad6b7fee60b721424a8840113f0f026c9">XAieGbl_HwCfg::NumCols</a>, <a class="el" href="struct_x_aie_gbl___hw_cfg.html#a386ee289463f3cfe2021b59d34158a41">XAieGbl_HwCfg::NumRows</a>, <a class="el" href="xsock__clitest_8c.html#af7ec442f30cb2733a1526466d78a1910">XAIE_BUFLEN</a>, <a class="el" href="xaiedma__tile_8c.html#a9ef29a10727307a09bfa1c83ef55c409">XAieDma_TileBdSetAdrLenMod()</a>, <a class="el" href="xaiedma__tile_8c.html#af40dbcb08f26c276706734917d8a93aa">XAieDma_TileBdSetLock()</a>, <a class="el" href="xaiedma__tile_8c.html#a0914c41fc28a0532f7e04d94ae5be923">XAieDma_TileBdSetNext()</a>, <a class="el" href="xaiedma__tile_8c.html#aaac4ad092c1b0e6472c84a11c9a8b423">XAieDma_TileBdWrite()</a>, <a class="el" href="xaiedma__tile_8c.html#ae1606aab03539f296736d3d07bb07559">XAieDma_TileChControl()</a>, <a class="el" href="xaiedma__tile_8c.html#a243428f0abd27c951f744118aab0883a">XAieDma_TileInitialize()</a>, <a class="el" href="xaiedma__tile_8h.html#a8840e1ee9ee860997575e6dc76c44536">XAieDma_TileSetStartBd</a>, <a class="el" href="xaiegbl_8c.html#ad6422e72b033ca8d8456af7432d1fd11">XAieGbl_CfgInitialize()</a>, <a class="el" href="xaiegbl_8c.html#ac2dbe8c9e25ce298bffbc257a95ec530">XAieGbl_HwInit()</a>, <a class="el" href="xaiegbl_8h.html#a23b3cabaf60670f82d0d6ccf92e2876a">XAieGbl_LookupConfig()</a>, <a class="el" href="xaiesim_8c.html#ad607fc08bc84434e9747155e5ada9328">XAieSim_Init()</a>, <a class="el" href="xaietile__core_8c.html#ae4dac15e0b9705f65eea04ada6a5d684">XAieTile_CoreControl()</a>, <a class="el" href="xaietile__core_8c.html#a218e1570a4a19e45db15d53ee110bd83">XAieTile_CoreWaitCycles()</a>, <a class="el" href="xaietile__mem_8c.html#aa440d48081850edaee52a64b0b3e6cfe">XAieTile_DmWriteWord()</a>, <a class="el" href="xaietile__lock_8c.html#aac78deb03ca97e5eefa793234a7459e8">XAieTile_LockAcquire()</a>, <a class="el" href="xaietile__lock_8c.html#a359377dd95d79733d83e2a0ca8c9672e">XAieTile_LockRelease()</a>, <a class="el" href="xaietile__plif_8c.html#a343bbe2bd23488ed8ef2a819587584e9">XAieTile_PlIntfDownszrEnable()</a>, <a class="el" href="xaietile__plif_8c.html#ab960ba25fa893bec9709201390b1da7b">XAieTile_PlIntfStrmWidCfg()</a>, <a class="el" href="xaietile__strm_8c.html#aa546559dcbc87a1b92e977a3010b7fe6">XAieTile_StrmConfigMstr()</a>, <a class="el" href="xaietile__strm_8c.html#ac5f99afdfa9ac96f40054cfb022176c3">XAieTile_StrmConfigSlv()</a>, <a class="el" href="xaietile__strm_8c.html#a31fbbf1714f13116db7b87a6492d59f3">XAieTile_StrmConfigSlvSlot()</a>, <a class="el" href="xaietile__strm_8c.html#a13824db867fb73286019007222d86433">XAieTile_StrmConnectCct()</a>, <a class="el" href="xaietile__strm_8h.html#a4fc8d0fec78ee262b7affcc9cd2c75df">XAIETILE_STRSW_MPORT_CFGPKT</a>, <a class="el" href="xaietile__strm_8h.html#a7f352776e6ff0b8fe2c265fc6e96e73f">XAIETILE_STRSW_MPORT_CTRL</a>, <a class="el" href="xaietile__strm_8h.html#a5cd18e571cbccdf85ef92c234b846a11">XAIETILE_STRSW_MPORT_DMA</a>, <a class="el" href="xaietile__strm_8h.html#a40a381ca3bc7df67cae71e1f4268a7ce">XAIETILE_STRSW_MPORT_NORTH</a>, <a class="el" href="xaietile__strm_8h.html#a3744367f08069fea7143c6e2b0b5be16">XAIETILE_STRSW_MPORT_SOUTH</a>, <a class="el" href="xaietile__strm_8h.html#a7ec85105fe329971874423c5542cac09">XAIETILE_STRSW_SLVSLOT_CFG</a>, <a class="el" href="xaietile__strm_8h.html#ac37d5c2da417c7a6ee98b6561271f75f">XAIETILE_STRSW_SPORT_DMA</a>, <a class="el" href="xaietile__strm_8h.html#a59247adcbe57bed2c3403963bf1f73d1">XAIETILE_STRSW_SPORT_NORTH</a>, <a class="el" href="xaietile__strm_8h.html#afa014fbf6b33edacc0b3770b4d8e6c68">XAIETILE_STRSW_SPORT_SOUTH</a>, <a class="el" href="xsock_8c.html#a54520ab352ab16dffb8ed60dc762a908">XSock_CliClose()</a>, <a class="el" href="xsock_8c.html#a2411a849c58d9b1972b08d54881fd6ae">XSock_CliCreate()</a>, <a class="el" href="xsock_8c.html#a5250e9b84de3dbec63b7cb85bbdee9f7">XSock_CliRead()</a>, and <a class="el" href="xsock_8c.html#a06d48ccb62eddc013c991da60e6debda">XSock_CliWrite()</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="ab3e8ae4158965dbf14d949a7e21de151"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_x_aie_gbl___config.html">XAieGbl_Config</a>* MeConfigPtr</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>AIE configuration pointer. </p>

</div>
</div>
<a class="anchor" id="a3754b08922a585b4bcd81a340739b626"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_x_aie_gbl.html">XAieGbl</a> MeInst</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>AIE global instance. </p>

</div>
</div>
<a class="anchor" id="a6c6154bc224b92077850a4dc1a0f4bc8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_x_sock_cli.html">XSockCli</a> SockCli</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Client socket instance. </p>

</div>
</div>
<a class="anchor" id="a2c155a415524c31bb0eb1291524f6a59"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_x_aie_gbl___tile.html">XAieGbl_Tile</a> TileInst[XAIE_NUM_COLS][XAIE_NUM_ROWS+1]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>AIE HW configuration instance. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
	<p class="footer">&copy; Copyright 2015-2022 Xilinx, Inc. All Rights Reserved.</p>
	<p class="footer">&copy; Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.</p>
</div>
</body>
</html>
